package com.bnzj.cloud.business.core.persistence.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@EnableJpaAuditing
@EntityListeners(AuditingEntityListener.class)
@Getter
@Setter
@ToString(callSuper = true)
@Entity
@Table(name = "bnz_group_course")
@Schema(description = "机构课程")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class GroupCourse implements Serializable {

    private static final long serialVersionUID = -1867411475978990636L;

    @Id
    @Schema(description = "主id")
    private Long id;

    @Schema(description = "机构id")
    private Long groupId;

    @Schema(description = "课程id")
    private Long courseId;

    @Schema(description="创建人工号")
    private String creator;

    @Schema(description="创建时间")
    private Date createTime;

    @Schema(description="创建人")
    private String creatorName;

}
